package com.hongdee.crm.tag.service;

import com.hongdee.crm.tag.endtity.TCrmCarTag;

import java.util.List;
import java.util.Map;

/**
 * Created by My on 2017/5/10.
 */
public interface ITcrmCarTagService {

    /**
     * 根据公司ID及父级Code获得树信息
     * @param pTagCode
     * @param uid
     * @return
     */
    public List<Map<String,Object>> getLeftTree(String pTagCode,String uid) throws Exception;

    /**
     * 根据父级编码 获得子集信息
     * @param start
     * @param limit
     * @param pTagCode
     * @param uid
     * @return
     * @throws Exception
     */
    public Map page(String start,String limit,String pTagCode,String uid) throws Exception;

    /**
     * 根据标签ID 获得标签详细信息
     * @param tagId
     * @param uid
     * @return
     * @throws Exception
     */
    public Map info(String tagId,String uid) throws Exception;

    /**
     * 停用或启用标签信息
     * @param tagId
     * @param status 0停用 1启用
     * @param uid
     * @throws Exception
     */
    public int disAndEnableTag(String tagId,String status,String uid) throws Exception;

    /**
     * 修改或新增标签信息
     * @param tag
     * @param uid
     * @return
     * @throws Exception
     */
    public TCrmCarTag saveOrUpdate(TCrmCarTag tag, String uid) throws Exception;

}
